Optimizing Z-score

Learn how to optimize the Z-score in a way that anomaly detection becomes easier.

So far, we used one standard deviation from the mean or a z-score of ±1 to identify anomalies. Changing the z-score threshold can affect our results. For example, let’s see what anomalies we identify when the z-score is greater than 0.5 and when it is greater than 3:

Let’s see what we got:

  • When we decreased the z-score threshold to 0.5, we identified the value 2 as an anomaly in addition to the value 12.
  • When we increased the z-score threshold to 3, we did not identify any anomaly.

The quality of our results is directly related to the parameters we set for the query. Later we will see how using backtesting can help us identify ideal values.

Understanding Z-score
Quiz 1
Mark as Completed
Report an Issue